/*
 * pwmPacketStructs.h
 *
 * Created: 9/23/2013 1:15:06 PM
 *  Author: Tim
 */ 


#ifndef PWMPACKETSTRUCTS_H_
#define PWMPACKETSTRUCTS_H_


typedef struct MOTOR_ENABLE
{
	
	uint8_t Header;
	uint8_t msgHeader;
	
	struct motorEnable_PARAM1
	{
		uint8_t motorEn_msk0	:1;
		uint8_t motorEn_msk1	:1;
		uint8_t motorEn_msk2	:1;
		uint8_t motorEn_msk3	:1;
		uint8_t	reserved		:4;
	}PARAM1;
	
	uint16_t checksum;
	
}motorEnable_t;

typedef struct SERVO_ENABLE
{
	uint8_t Header;
	uint8_t msgHeader;
	
	struct servoEnable_PARAM1
	{
		uint8_t servoEn_msk0	:1;
		uint8_t servoEn_msk1	:1;
		uint8_t servoEn_msk2	:1;
		uint8_t servoEn_msk3	:1;
		uint8_t	reserved		:4;
	}PARAM1;
	
	uint16_t checksum;
	
}servoEnable_t;

#endif /* PWMPACKETSTRUCTS_H_ */